﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using TaskHub.LocalStorage;

namespace TaskHub
{
    public partial class Settings : PhoneApplicationPage
    {
        public Settings()
        {
            InitializeComponent();
        }

        private void hlbEditProfile_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/EditRegister.xaml", UriKind.Relative));
        }

        private void cbPushNotification_Checked(object sender, RoutedEventArgs e)
        {

        }

        private void hlbLogoff_Click(object sender, RoutedEventArgs e)
        {
            IsolatedStorageDAO.setMyId(0);
            IsolatedStorageDAO.SaveContacs(null);
            IsolatedStorageDAO.SaveMyTasks(null);
            IsolatedStorageDAO.SaveOtherTasks(null);
            IsolatedStorageDAO.InitStorage();

            NavigationService.GoBack();
            
        }
    }
}